package com.key.w8.http1.handler.codec;

import com.key.w8.http1.entity.HttpRequest;
import com.key.w8.http1.entity.HttpResponse;
import io.netty.handler.codec.http.FullHttpRequest;
import io.netty.handler.codec.http.FullHttpResponse;

/**
 * @Author: k8
 * @CreateTime: 2025-03-11
 * @Version: 1.0
 * 用于处理入栈数据
 */
public interface HttpObjectServerResolver {
    boolean canResolverRequestIn(FullHttpRequest fullHttpRequest);
    HttpRequest resolverRequestIn(FullHttpRequest fullRequest);
    boolean canResolverResponseOut(HttpResponse httpResponse);
    FullHttpResponse resolverResponseOut(HttpResponse httpResponse,ByteBufAllocatorHolder allocatorHolder);
}
